StoreEngine\Addons\Stripe\GatewayStripe D

Total Complexity 126
Dependencies 22
Dependents 4
Total lines 1,104
Lines of code 621
Logical lines of code 323
Comment lines 187
Methods 28
Properties 3

Methods 28

Method Rating Maintainability Complexity Lines of code
process_payment()
C
30 25 113
payment_fields()
A
42 12 52
stripe_capture_payment()
A
42 9 47
is_available()
A
56 10 17
process_refund()
A
49 9 30
verify_config()
A
45 7 43
add_payment_method()
A
47 7 34
maybe_update_source_on_subscription_order()
S
54 6 21
get_source_object_from_request()
S
58 6 14
process_subscription_payment()
S
47 4 35
maybe_attach_source_to_customer()
S
60 5 13
init_admin_fields()
S
42 1 63
save_payment_method_checkbox()
S
59 3 15
save_payment_method()
S
65 4 9
update_stripe_payment_source()
S
55 2 21
validate_minimum_order_amount()
S
63 2 11
setup()
S
53 1 24
get_user_from_order()
S
69 2 7
filter_saved_payment_methods_list()
S
72 2 6
create_payment_token_for_user()
S
60 1 13
handle_webhook_setup()
S
91 1 2
is_currency_supported()
S
79 1 3
update_payment_token()
S
74 1 5
get_source_object()
S
79 1 3
is_payment_needed()
S
78 1 3
get_stripe_customer_from_order()
S
75 1 4
process_scheduled_payment()
S
81 1 3
__construct()
S
63 1 10